package ua.kharkov.khpi.tarasenko.bach.core;

import ua.kharkov.khpi.tarasenko.bach.web.command.CommandManager;

public class Constant {
	
	public static final String CONTEXT_ATTRIBUTE_TREE = "tree";	
	
	public static final String ATTRIBUTE_USER_BEAN = "userBean";
	public static final String ATTRIBUTE_ERROR_MESSAGE = "errorMessage";
	public static final String ATTRIBUTE_COMMAND = "command";
	public static final String ATTRIBUTE_REDIRECT_URL = "redirectUrl";
	public static final String ATTRIBUTE_IS_VALID = "isValid";
	public static final String ATTRIBUTE_ITEM_ID = "itemId";
	public static final String ATTRIBUTE_ITEM_NAME = "itemName";
	public static final String ATTRIBUTE_ITEM_CATEGORY = "itemCategory";
	public static final String ATTRIBUTE_ITEM_QUANTITY = "itemQuantity";
	public static final String ATTRIBUTE_ITEM_PRICE = "itemPrice";
	public static final String ATTRIBUTE_ITEM_DESCRIPTION = "itemDescription";
	public static final String ATTRIBUTE_USER_ID = "userId";
	public static final String ATTRIBUTE_USER_SETTINGS_BEAN = "userSettingsBean";
	public static final String ATTRIBUTE_CATEGORY_CONTAINER = "categoryContainer";
	public static final String ATTRIBUTE_ORDER_ID = "orderId";
	public static final String ATTRIBUTE_IS_ORDER_PLACED = "isOrderPlaced";
	public static final String ATTRIBUTE_CATEGORY_ID = "categoryId";
	public static final String ATTRIBUTE_PREFERABLE_LOCALE = "preferableLocale";
	public static final String ATTRIBUTE_RECOMMENDATION_BEAN = "recommendationBean";
	
	public static final String PAGE_LOG_IN = "index.jsp";
	public static final String PAGE_AUTHENTICATION_RESULT = "WEB-INF/views/userArea/authentication_result.jsp";
	public static final String PAGE_ITEMS_LIST = "WEB-INF/views/common/items_list.jsp";
	public static final String PAGE_VIEW_ITEM = "WEB-INF/views/userArea/view_item.jsp";
	public static final String PAGE_SETTINGS = "WEB-INF/views/common/settings.jsp";
	public static final String PAGE_ERROR = "WEB-INF/views/common/error_page.jsp";
	public static final String PAGE_SHOPPING_CART = "WEB-INF/views/userArea/shopping_cart.jsp";
	public static final String PAGE_PLACE_ORDER_RESULT = "WEB-INF/views/userArea/place_order_result.jsp";
	public static final String PAGE_CLEAR_SHOPPING_CART_RESULT = "WEB-INF/views/userArea/clear_shopping_cart_result.jsp";
	public static final String PAGE_ORDERS_LIST = "WEB-INF/views/userArea/orders_list.jsp";
	public static final String PAGE_PAY_FOR_ORDER_RESULT = "WEB-INF/views/userArea/pay_for_order_result.jsp";
	public static final String PAGE_USERS_LIST = "WEB-INF/views/adminArea/users_list.jsp";
	public static final String PAGE_EDIT_ITEM = "WEB-INF/views/adminArea/edit_item.jsp";
	public static final String PAGE_CREATE_ITEM = "WEB-INF/views/adminArea/create_item.jsp";
	public static final String PAGE_ADD_TO_CART_RESULT = "WEB-INF/views/userArea/add_to_cart_result.jsp";
	public static final String PAGE_USERS_ORDERS = "WEB-INF/views/adminArea/orders.jsp";
	public static final String PAGE_RECOMMENDATIONS_SETTINGS = "WEB-INF/views/adminArea/recommendations_settings.jsp";

	public static final String TABLE_CATEGORY = "CATEGORY";
	public static final String TABLE_ITEM = "ITEM";
	public static final String TABLE_ORDER_ITEM = "ORDER_ITEM";
	public static final String TABLE_ORDER_CUSTOMER = "ORDER_CUSTOMER";
	public static final String TABLE_CUSTOMER = "CUSTOMER";
	
	
	public static final String COMMAND_SHOW_ITEMS_LIST = "main?command="
			+ CommandManager.COMMAND_SHOW_ITEM_LIST;
	public static final String COMMAND_SHOW_ITEMS_LIST_BY_CATEGORY = "main?command="
			+ CommandManager.COMMAND_SHOW_ITEM_LIST
			+ "&"
			+ ATTRIBUTE_CATEGORY_ID + "=";
	public static final String COMMAND_ERROR_PROCESSING = "main?command="
			+ CommandManager.COMMAND_ERROR_PROCESSING;
	public static final String COMMAND_SHOW_ITEM = "main?command="
			+ CommandManager.COMMAND_SHOW_ITEM;
	public static final String COMMAND_SHOW_SHOPPING_CART = "main?command="
			+ CommandManager.COMMAND_SHOW_SHOPPING_CART;
	public static final String COMMAND_CLEAR_SHOPPING_CART = "main?command="
			+ CommandManager.COMMAND_SHOW_SHOPPING_CART;
	public static final String COMMAND_SHOW_SETTINGS = "main?command="
			+ CommandManager.COMMAND_SHOW_SETTINGS;
	public static final String COMMAND_SHOW_USERS_LIST = "main?command="
			+ CommandManager.COMMAND_SHOW_USERS_LIST;
	public static final String COMMAND_SHOW_RECOMMENDATIONS_SETTINGS = "main?command="
			+ CommandManager.COMMAND_SHOW_RECOMMENDATIONS_SETTINGS;
	public static final String ATTRIBUTE_AVAILABLE_LOCALS = "availableLocals";
	
	
}
